﻿@using MvcMall.Portal.Controllers.Shop.ViewModels;
@model ShopLeftModel
<!--左边box开始-->
<div class="shop_left">
    <div class="shop_people">
        <ul>
            <li>
                <img style=" width:180px; height:140px;" src="@(string.IsNullOrEmpty(Model.ShopImage) ? "/Content/images/noimage.png" : Model.ShopImage)" /></li>
            <li><span class="bolder">@Model.ShopName</span></li>
            @* <li>
                <img align="absMiddle" src="/Content/images/zfb_person_small.gif" />&nbsp;已通过商城诚信验证</li>
            <li class="shop_people_tag">在线客服：<a href="#"><img align="absMiddle" src="/Content/images/btn4.gif" /></a></li>
            <li><a href="#">
                <img align="absMiddle" src="/Content/images/btn5.gif" /></a></li>
            <li><a href="#">
                <img align="absMiddle" src="/Content/images/btn6.gif" /></a></li>*@
        </ul>
    </div>
    <div class="shop_left_title">
        店内搜索</div>
    <div class="shop_left_search_box">
        @using (Html.BeginForm("Search", "Shop"))
        {
            <ul>
                <li>
                    @Html.Hidden("StoreId",Model.ShopId)
                    @Html.TextBox("SearchName", string.Empty, new { @class = "login_input", @style = "width: 100%;" })
                </li>
                <li>
                    <input type="submit" style="background-image: url('/Content/images/search_btn2.gif');
                        width: 70px; height: 25px; border: 0; margin: 0; padding: 0" value=""></input>
                </li>
            </ul>
        }
    </div>
    <div class="shop_left_title">
        商品分类</div>
    <div class="shop_left_box">
        @*<ul>
            <a href="#">查看全部商品>></a></ul>*@
        <ul>
            @foreach (var item in Model.ShopCategories)
            {
                <li>@Html.ActionLink(item.CategoryName, "GoodsSearch", "Shop", new { @StoreCatId = item.Id, @StoreId = Model.ShopId }, null)</li>
            }
        </ul>
    </div>
</div>
